package com.cssy.yd.logic.dao;

import com.cssy.yd.logic.entity.LogicPoWareItemBatchDO;
import com.plat.helper.SearchConditions;

import java.util.List;

import org.springframework.dao.DataAccessException;

/**
 * 数据访问对象接口
 * @since 2013-10-17
 */
public interface LogicPoWareItemBatchDAO {

    /**
     * 插入数据
     * @param logicPoWareItemBatchDO
     * @return 插入数据的主键
     */
    public String insertLogicPoWareItemBatchDO(LogicPoWareItemBatchDO logicPoWareItemBatchDO);

    /**
     * 统计记录数
     * @param logicPoWareItemBatchDO
     * @return 查出的记录数
     */
    public Integer countLogicPoWareItemBatchDOByExample(LogicPoWareItemBatchDO logicPoWareItemBatchDO);

    /**
     * 更新记录
     * @param logicPoWareItemBatchDO
     * @return 受影响的行数
     */
    public Integer updateLogicPoWareItemBatchDO(LogicPoWareItemBatchDO logicPoWareItemBatchDO);

    /**
     * 获取对象列表
     * @param logicPoWareItemBatchDO
     * @return 对象列表
     */
    public List<LogicPoWareItemBatchDO> findListByExample(LogicPoWareItemBatchDO logicPoWareItemBatchDO);

    /**
     * 根据主键获取logicPoWareItemBatchDO
     * @param id
     * @return logicPoWareItemBatchDO
     */
    public LogicPoWareItemBatchDO findLogicPoWareItemBatchDOByPrimaryKey(String id);

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicPoWareItemBatchDOByPrimaryKey(String id);

    public List<LogicPoWareItemBatchDO> find(SearchConditions scs)
			throws DataAccessException;

    public Integer count(SearchConditions scs) throws DataAccessException;

    public Integer deleteLogicPoWareItemBatchDOByWareItemId(String id);

}